package com.mxue.test;

public class HashCodeDemo {
    public static void main(String[] args) {
        String a = new String("hello wrold");
        System.out.println(a.hashCode());
        System.out.println(Integer.toHexString(a.hashCode()));
        String b = new String("hello wrol");
        System.out.println(b.hashCode());
        String c = new String("d");
        System.out.println((b + c).hashCode());
        System.out.println(Integer.toHexString((b + c).hashCode()));
    }
}
